//
//  Model.m
//  DouBanDemo
//
//  Created by LiuFei on 14/11/10.
//  Copyright (c) 2014年 LiuFei. All rights reserved.
//

#import "Model.h"

@implementation Model

- (void)dealloc
{
    [_Data release];
    [_Title release];
    [super dealloc];
}

- (instancetype)initWithId:(NSInteger)Id title:(NSString *)title Data:(NSString *)data
{
    self = [super init];
    if (self) {
        self.Id = Id;
        self.Title = title;
        self.Data = data;
    }
    return self;
}

+ (instancetype)modelWithId:(NSInteger)Id title:(NSString *)Url Data:(NSString *)data
{
    Model *model = [[Model alloc] initWithId:Id title:Url Data:data];
    return [model autorelease];
}




@end
